package wt.dao.dictionary;

import base.IBaseMapperWithoutBLOBs;
import org.apache.ibatis.annotations.Param;
import wt.entity.dictionary.MajorType;
import wt.entity.dictionary.MajorTypeExample;

import java.util.List;

public interface MajorTypeMapper extends IBaseMapperWithoutBLOBs<MajorType,MajorTypeExample> {
    /**
     * 根据叶子节点获取对应树
     * @param leafIdList
     * @return
     */
    List<MajorType>  selectTreeByLeafId(@Param("leafIdList") List<String> leafIdList);
    /**
     * 根据叶子节点获取对应树
     * @param leafNumList
     * @return
     */
    List<MajorType>  selectTreeByLeafNum(@Param("leafNumList") List<String> leafNumList);


    /**
     * 查询专家某个专业等级下的专业
     * @param expertId   不能为空
     * @param itemId     可为空
     * @param level      可为空
     * @return
     */
    List<MajorType>  selectExpertMajorByLevel(@Param("expertId") String expertId,@Param("itemId") String itemId,@Param("level") Integer level);


//<!--businessId  level  selectBusinessMajorByLevel-->
    /**
     * 查询业务专业等级下的专业
     * @param businessId   不能为空
     * @param level      可为空
     * @return
     */
    List<MajorType>  selectBusinessMajorByLevel(@Param("businessId") String businessId,@Param("level") Integer level);



}